﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace DirectUI.Mobile.UI.Controls
{

    public interface IContainer:IDirectUIControl
    {
        ///// <summary>
        ///// Invalidates the canvas of the  specified bounds.
        ///// </summary>
        ///// <param name="bounds">The bound to invalidate.</param>
        void Invalidate(Rectangle bounds);

       

        /// <summary>
        /// Gets the host for all nested DirectUIControls.
        /// </summary>
        IHost Host { get; }

        ////SizeF ScaleFactor { get; }

        Point PointToHost(int x, int y);

        //void Layout(LayoutEventArgs e);

        /// <summary>
        /// Gets the bounds as they appear in the screen.
        /// </summary>
        /// <param name="bounds"></param>
        /// <returns></returns>
        Rectangle GetScreenBounds(Rectangle bounds);

    }
}
